# Maintainer: Michał Adamski <michal@ert.pl>
pkgname=py3-aiorpcx
pkgver=0.22.1
pkgrel=4
pkgdesc="Generic async RPC implementation, including JSON-RPC"
url="https://github.com/kyuupichan/aiorpcX"
arch="noarch"
license="MIT"
depends="python3 py3-websockets"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-asyncio"
subpackages="$pkgname-pyc"
source="https://github.com/kyuupichan/aiorpcX/archive/refs/tags/$pkgver/py3-aiorcpx-$pkgver.tar.gz"
builddir="$srcdir/aiorpcX-$pkgver"
options="net" # checks make network requests

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=build/lib pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
3484da36ce6042d8d4c6b168fd2326c0fc77a825691b95631e54510697708a27ea07e9a808445d504056432adf04f04cb0bc28d4b7194c55c1995096bb938b4d  py3-aiorcpx-0.22.1.tar.gz
"
